package lexicalUnit;

import chalmersbot.Absyn.VerbWordAux;
import chalmersbot.Absyn.VerbWordAuxVerb;
import chalmersbot.Absyn.VerbWordVerb;
import chalmersbot.Absyn.VerbWord.Visitor;

public class CheckVerbWord implements Visitor<String, Environ> {

	@Override
	public String visit(VerbWordVerb p, Environ arg) {
		return p.vrb_.accept(new CheckVrb(), arg);
	}

	@Override
	public String visit(VerbWordAux p, Environ arg) {
		return p.auxverb_.accept(new CheckAuxVerb(), arg);
	}

	@Override
	public String visit(VerbWordAuxVerb p, Environ arg) {
		return p.auxverb_.accept(new CheckAuxVerb(), arg) + " " + p.vrb_.accept(new CheckVrb(), arg);
	}

}
